package com.hks.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName(value = "sys_user")
public class User implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField(value = "status")
    private Integer status;

    @TableField(value = "username")
    private String username;

    @TableField(value = "password")
    private String password;

    @TableField(value = "nick_name")
    private String nickName;

    @TableField(value = "del_flag")
    private Integer delFlag;

    @TableField(value = "avatar")
    private String avatar;

    @TableField(exist = false)
    private List<Menu> menus;

    @TableField(value = "is_expired")
    private Integer isExpired;

    @TableField(value = "is_locked")
    private Integer isLocked;

    @TableField(value = "credentials_expired")
    private Integer credentialsExpired;

    @TableField(value = "is_enabled")
    private Integer isEnabled;
}
